﻿#ifndef DUALCAMERASDISPLAYWIDGET_H
#define DUALCAMERASDISPLAYWIDGET_H

#include <QStackedWidget>
#include <QScrollArea>
#include <QSettings>
#include "DisplayWidget/ImageView.h"
#include "Camera/CameraCommon/CameraImage_RGB32.h"

class DualCamerasDisplayWidget : public QWidget
{
    Q_OBJECT
public:
    DualCamerasDisplayWidget(QWidget * parent = nullptr);
    void loadSettings(QSettings &settings);
    void writeSettings(QSettings &settings);
    void setRect(int robotNo, QRect leftRect, QRect rightRect);

signals:
    void mouseMoved(int ch, QPointF &point);
public slots:
    void zoomIn();
    void zoomOut();
    void setZoomFactorPCT(int pct);
    void attch(Qly::CameraImage_RGB32 * pImage[2]);
private slots:
    void onMouseMoved(QPointF &point);
private:
    Qly::ImageView * m_pView[2];
    int m_zoomFactorIndex;
};




#endif // DUALCAMERASDISPLAYWIDGET_H
